package com.zxcz.service;

import com.zxcz.domain.PageResult;
import com.zxcz.domain.Resource;
import com.zxcz.domain.Result;

public interface ResourceService {

	/**
	 * 根据搜索出来的数据进行分页
	 * @param pageNum
	 * @param pageSize
	 * @param resource 具体的资源信息
	 * @return
	 */
	PageResult<Resource> queryPage(int pageNum, int pageSize, String name, String startTime, String endTime, String account);

	Resource findResourceById(int id);

	Result<Object> insertResource(Resource resource);

	Result<Object> deleteResource(int id);

	Result<Object> updateResource(Resource resource);

	Resource findResourceByOssObject(String ossObject);

	PageResult userResourcePage(int pageNum, int pageSize, String name, String startTime, String endTime);

	Result<Object> deleteResourceByUserId(Integer id);

}
